package com.ruoyi.livesass.api.convert;

import org.mapstruct.Mapper;
import com.ruoyi.livesass.api.domain.LbsCloudResource;
import com.ruoyi.livesass.api.pojo.dto.LbsCloudResourceDTO;
import com.ruoyi.livesass.api.pojo.vo.LbsCloudResourceVO;
import java.util.List;
/**
 * 直播消耗的云资源费用  DO <=> DTO <=> VO / BO / Query
 *
 * @author zcc
 */
@Mapper(componentModel = "spring")
public interface LbsCloudResourceConvert  {

    /**
     * @param source DO
     * @return DTO
     */
    LbsCloudResourceDTO do2dto(LbsCloudResource source);

    /**
     * @param source DTO
     * @return DO
     */
    LbsCloudResource dto2do(LbsCloudResourceDTO source);

    List<LbsCloudResourceVO> dos2vos(List<LbsCloudResource> list);
}
